package com.haois.ws.common.constant;

/**
 * Created by haol on 2017/3/17.
 */
public class StatusCode {

    public static final String SHARE_NUM = "share@haois.me";
    public static final String SHARE_OID = "shareOid";

    //0未处理，1同意，2为拒绝
    public static final Integer NO_HANDLE = 0;
    public static final Integer AGREE = 1;
    public static final Integer REFUSE = 2;


    public static final String JWT_NULL = "JWT不存在";
    public static final String JWT_OVER_TTL = "超过有效期";
    public static final String JWT_OVER_ILLEGAL = "非法JWT";
    public static final String JWT_LEGAL = "合法";

    public static final String COOKIE_JWT_WEB = "web-jwt";
    public static final String COOKIE_JWT_APP = "app-jwt";
    public static final String ISSURE_JWT_APP = "app";
    public static final String ISSURE_JWT_WEB = "web";


    public static final int JWT_WEB_TTL = 60 * 60 * 1000;//一小时
    public static final int JWT_CHAT_TTL = 60 * 60 * 1000 * 24 * 6;//6个月;
    public static final int JWT_APP_TTL = 60 * 60 * 1000 * 24;//一个月
    public static final String JWT_ID = "Jwt";//jwt的id
    public static final String JWT_SECRET = "GCU";//token密钥一部分


    public static final String SUBJECT_KEY_NUM = "memberNum";
    public static final String SUBJECT_KEY_ID = "id";
    public static final String SUBJECT_KEY_OPEN_ID = "openId";

    public static final boolean EXCEL_YUN = false;


}
